import {
  post,
  get,
  put,
  dalete,
  postJosn,
  putone,
  patch,
  patchJson,
  daleteJson,
} from '../utils/request';

//查询所有大区信息

export function getAllZone(data) {
  return get('/api/user-service/v1/review/getAllZone', data);
}

//查询所有营销区域信息

export function getAllBase(data) {
  return get('/api/user-service/v1/review/getAllBase', data);
}
//查询所有门店信息

export function getAllShop(data) {
  return get('/api/user-service/v1/review/getAllShop', data);
}

//查询业务员信息

export function getBaseUserInfo(data) {
  return get('/api/user-service/v1/review/getBaseUserInfo', data);
}

//申请店铺提交资料

export function applyShop(data) {
  return post('/api/user-service/v1/review/applyShop', data);
}

//编辑店铺提交资料

export function editStore(data) {
  return post('/api/user-service/v1/review/editStore', data);
}

//编辑店铺提交资料
export function returnBack(data) {
  return get('/api/user-service//v1/reviewClerk/returnBack', data);
}

//查询商户店铺申请信息

export function queryUserReviewInfo(data) {
  return post('/api/user-service/v1/review/queryUserReviewInfo', data);
}
//查询商户店铺列表

export function qryStore(data) {
  return post('/api/user-service/v1/review/qryStore', data);
}

//查询商户店铺申请信息

//复审意见

export function finalReview(data) {
  return post('/api/user-service/v1/review/finalReview', data);
}

//初审意见

export function preliminaryExamination(data) {
  return post('/api/user-service/v1/review/preliminaryExamination', data);
}

// 工行建档信息修改 初审
export function icbcPreliminary(data) {
  return post('/api/user-service/v1/review/icbcPreliminary', data);
}

//店面强关

export function storeAdministration(data) {
  return post(
    '/api/user-service/v1/review/storeAdministration?uuid=' +
      data.uuid +
      '&openStatus=' +
      data.openStatus
  );
}

//解锁银行支付信息

export function paymentInformation(data) {
  return post(
    '/api/user-service/v1/review/paymentInformation?uuid=' +
      data.uuid +
      '&isSwith=' +
      data.isSwith
  );
}

//店面申请详情

export function queryReviewInfo(data) {
  return get('/api/user-service/v1/review/queryReviewInfo', data);
}

//检验店主店长手机号

export function phoneVerification(data) {
  return post(
    '/api/user-service/v1/review/phoneVerification?phone=' +
      data.phone +
      '&type=' +
      data.type
  );
}

//大区复审

export function shopPreliminary(data) {
  return post('/api/user-service/v1/review/shopPreliminary', data);
}

//总部复审

export function storeFinalReview(data) {
  return post('/api/user-service/v1/review/storeFinalReview', data);
}

// 修改工行建档信息 复审
export function icbcFinalReview(data) {
  return post('/api/user-service/v1/review/icbcFinalReview', data);
}

//模板查询接口

export function queryUserIcbcTemp(data) {
  return get('/api/user-service/v1/review/queryUserIcbcTemp', data);
}
//模板接口压缩包保存

export function downloadZip(data) {
  return get(
    '/api/file-service/v1/share/downloadZip?fileNameZip=' + data.fileNameZip
  );
}

//拟稿暂存接口

export function saveUserReviewInfo(data) {
  return post('/api/user-service/v1/review/saveUserReviewInfo', data);
}

//文件上传

export function uploadFile(data) {
  return post('/api/file-service/v1/file/fileUploadIcbc', data);
}

//模板维护接口

export function edidUserIcbcTemp(data) {
  return post('/api/user-service/v1/review/edidUserIcbcTemp', data);
}

//店铺申请详情

export function queryUserStoreInfo(data) {
  return get('/api/user-service/v1/review/queryUserStoreInfo', data);
}

//店铺申请详情

export function download(data) {
  return get(
    '/api/file-service/v1/share/download?tempType=' + data.tempType + '&type=1'
  );
}

export function downloadone(data) {
  return get(
    '/api/file-service/v1/share/download?tempType=' + data.tempType + '&type=2'
  );
}

export function resetPwd(data) {
  return get('/api/user-service/v1/review/resetPwd?authCode=' + data.authCode);
}

export function qryFaqConfigInfo(data) {
  return get(
    '/api/promotion-service/v1/faq/qryFaqConfigInfo?code=' + data.code
  );
}

// 修改店铺信息
export function updateModifyShop(data) {
  return put('/api/user-service/v1/review/modifyShop', data);
}
